package com.xunk.scene.mapper;

import com.xunk.scene.domain.SceneConditionEquipment;
import com.xunk.scene.domain.SceneConditionWeather;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.scene.mapper
 * @ClassName: SceneConditionWeatherMapper
 * @Author: tangguangyuan
 * @Description: 场景天气条件表
 * @Date: 2021/5/19 10:41
 * @Version: 1.0
 */
public interface SceneConditionWeatherMapper {

    /**
     * 查询有效的天气条件
     */
    List<SceneConditionWeather> queryWeatherConditionEffective();

    /**
     * 根据场景ID查询天气条件
     * @param sceneId
     * @return
     */
    List<SceneConditionWeather> queryWeatherConditionBySceneId(Long sceneId);

    /**
     * 根据场景ID查询天气条件详细信息
     * @param sceneId
     * @return
     */
    List<SceneConditionWeather> queryWeatherConditionDetailBySceneId(Long sceneId);


    /**
     * 插入天气条件
     * @param sceneConditionWeather
     * @return
     */
    int insertConditionWeather(SceneConditionWeather sceneConditionWeather);

    /**
     * 变更场景天气条件
     * @param sceneId
     * @param userId
     * @return
     */
    int hideWeatherConditionBySceneId(@Param("sceneId") Long sceneId, @Param("userId") String userId);

    /**
     * 更新天气条件表的数据
     * @param sceneConditionWeather
     * @return
     */
    int updateWeatherCondition(SceneConditionWeather sceneConditionWeather);

    /**
     * 根据场景ID删除天气条件
     */

    int deleteWeatherConditionBySceneId(long sceneId);


    /**
     * 查询只有天气条件的场景的ID
     */

    List<Integer> querySceneIdsfromConditionWeather();
}
